-- GENERATED SPELL FOR [Mistress of the Coldwind] --


function spell0_26578(pUnit, Event) --@Arctic Winds,n/a--
pUnit:FullCastSpellOnTarget(52814,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26578', 1500, 1)
end

function spell1_26578(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(38210,pUnit)
pUnit:RegisterEvent('Sorts_26578', 15000, 1)
end

function Sorts_26578(pUnit, Event)
local choix_sorts_26578 = math.random(0, 1)
if choix_sorts_26578 == 0 then
pUnit:RegisterEvent('spell0_26578', 1, 1)
end
if choix_sorts_26578 == 1 then
pUnit:RegisterEvent('spell1_26578', 1, 1)
end
end

function mob26578_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26578', math.random(1500, 3000), 1)
end

function mob26578_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26578_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26578_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26578, 1, 'mob26578_Action')
RegisterUnitEvent(26578, 2, 'mob26578_Leave')
RegisterUnitEvent(26578, 3, 'mob26578_Kill')
RegisterUnitEvent(26578, 4, 'mob26578_Die')
